class UsersController < ApplicationController
  def create
    user = User.new params[:user]
    if user.save
      redirect_to "/"
    else
      render :action => :new
    end
  end

  def destroy
  end

  def edit
    @user = @current_user
  end

  def index
  end

  def new
    @user = User.new
  end

  def show
    @user = @current_user
  end

  def update
    @user = @current_user
    if @user.update_attributes params[:user]
    else
      render :action => :edit
    end
  end

end
